package com.zondy.mapgis.domain.psmap;

import com.zondy.mapgis.common.core.annotation.Excel;
import com.zondy.mapgis.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(
   name = "应用对象"
)
public class AppStore extends BaseEntity {
   private static final long serialVersionUID = 1L;
   @Schema(
      description = "应用ID"
   )
   private Long appId;
   @Schema(
      description = "应用配置"
   )
   @Excel(
      name = "应用配置"
   )
   private String appConfig;

   public Long getAppId() {
      return this.appId;
   }

   public String getAppConfig() {
      return this.appConfig;
   }

   public AppStore setAppId(Long appId) {
      this.appId = appId;
      return this;
   }

   public AppStore setAppConfig(String appConfig) {
      this.appConfig = appConfig;
      return this;
   }

   public String toString() {
      return "AppStore(appId=" + this.getAppId() + ", appConfig=" + this.getAppConfig() + ")";
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof AppStore)) {
         return false;
      } else {
         AppStore other = (AppStore)o;
         if (!other.canEqual(this)) {
            return false;
         } else if (!super.equals(o)) {
            return false;
         } else {
            Object this$appId = this.getAppId();
            Object other$appId = other.getAppId();
            if (this$appId == null) {
               if (other$appId != null) {
                  return false;
               }
            } else if (!this$appId.equals(other$appId)) {
               return false;
            }

            Object this$appConfig = this.getAppConfig();
            Object other$appConfig = other.getAppConfig();
            if (this$appConfig == null) {
               if (other$appConfig != null) {
                  return false;
               }
            } else if (!this$appConfig.equals(other$appConfig)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof AppStore;
   }

   public int hashCode() {
      boolean PRIME = true;
      int result = super.hashCode();
      Object $appId = this.getAppId();
      result = result * 59 + ($appId == null ? 43 : $appId.hashCode());
      Object $appConfig = this.getAppConfig();
      result = result * 59 + ($appConfig == null ? 43 : $appConfig.hashCode());
      return result;
   }
}
